package org.carl.alex.spring.ioc;

import java.sql.SQLException;

import org.carl.alex.spring.SpringBeanHelper;
import org.carl.alex.spring.vo.Person;
import org.springframework.context.ApplicationContext;

public class IOC {
public static void main(String[] args) throws SQLException {
	ApplicationContext ac=SpringBeanHelper.applicationContext.get();
	Person p1=ac.getBean(Person.class);
	Person p2=(Person) ac.getBean("person");
	System.out.println(p1);
	System.out.println(p2);
}
}
